From: Mario Sanchez Prada Date: Mon, 16 Apr 2018 10:47:57 +0000 (+0100) Subject: popupMenu: Fix wrong call to clutter_actor_add_child() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~107 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cdbc99e992442b6e0c8b5910d38e606d67be6560;p=gnome-shell.git popupMenu: Fix wrong call to clutter_actor_add_child() Specify the horizontal alignment via the x_align property when creating the StIcon, since this function expects one argument, not two. --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 67b928c69..83194d72b 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -394,8 +394,9 @@ var PopupImageMenuItem = new Lang.Class({ _init(text, icon, params) { this.parent(params); - this._icon = new St.Icon({ style_class: 'popup-menu-icon' }); - this.actor.add_child(this._icon, { align: St.Align.END }); + this._icon = new St.Icon({ style_class: 'popup-menu-icon', + x_align: Clutter.ActorAlign.END }); + this.actor.add_child(this._icon); this.label = new St.Label({ text: text }); this.actor.add_child(this.label); this.actor.label_actor = this.label;